package team.yidong.fenda.service;

import com.qiniu.util.Json;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.text.ParseException;

/**
 * Created by xuanlong on 2018/3/17.
 */
@Service
public interface GuahaoService {
    JSONObject findGuahaoNum(Integer hospitalId, Integer hospitalDepartmentId);

    JSONArray findGuahaoMaster(String guahaoDate, Integer hospitalId, Integer departmenId);

    JSONObject findMasterGuahaoNum(Integer masterId, String date);

    JSONObject findGuahao(Integer hospitalId, Integer departmentId, String guahaoDate);

    JSONArray findGuahaoMasterForSys(Integer hospitalId, Integer departmentId, String guahaoDate) throws ParseException;

    void addGuahao(Integer guahaoDepartment, String addGuahaoDate, String addGuahaoDateTime, Integer addGuahaoNum, Integer masterSelect);

    void updateGuahaoNum(Integer guahaoId, Integer guahaoNum);

    void addSevenDayGuahao();
}
